import request from '@/util/request'

// 获取文章分类
export const myCartListService = () => request.get('/my/cate/list')

// 增加文章分类
export const myCateAddService = ({ cate_name, cate_alias }) =>
  request.post('/my/cate/add', { cate_name, cate_alias })

// 更新文章分类
export const myCateInfoService = ({ id, cate_name, cate_alias }) =>
  request.put('/my/cate/info', { id, cate_name, cate_alias })

// 删除文章分类
export const myCateDel = (id) =>
  request.delete('/my/cate/del', { params: { id } })
